package com.webbei.Backstage.service;

import java.util.List;
import java.util.Map;

import com.webbei.pojo.Advertisement;
import com.webbei.pojo.BgPic;
import com.webbei.pojo.Brands;
import com.webbei.pojo.Carseries;
import com.webbei.pojo.Cartypes;
import com.webbei.pojo.Customer;
import com.webbei.pojo.Customerlimit;
import com.webbei.pojo.Customs;
import com.webbei.pojo.Designers;
import com.webbei.pojo.Industry;
import com.webbei.pojo.Label;
import com.webbei.pojo.LabelInfo;
import com.webbei.pojo.LabelProduct;
import com.webbei.pojo.Labelcost;
import com.webbei.pojo.Managers;
import com.webbei.pojo.OrderStatistics;
import com.webbei.pojo.Ordercost;
import com.webbei.pojo.Orders;
import com.webbei.pojo.PrintInfo;
import com.webbei.pojo.Products;
import com.webbei.pojo.RefundOrder;
import com.webbei.pojo.Report;
import com.webbei.pojo.Userhot;
import com.webbei.product.action.Product;

public interface BackstateSer {
	 public List<Report> relist(int start);
	 public List<Managers> malist();
	 public List<Customer> cuslist();
	 public Customer findcusbyid(int id);
	 public List<Customer> fenyelist(int start);
	 public List<Customer> findcusbyname(String uname);
	 public int getreortCount();
	 public int reportsuccess(String username,int count, int reportId);
	 public int reportfail(String username,int count,int reportId);
     public Userhot uhot(String username);
     public int customerlimitCount();
     public List<Customerlimit> cuslimitlist(int start);
     public int updatelimit(String name, int share, int ping, int ju, int ding);
     public Customerlimit cuslimi(String username);
     public List<Report> getrecontent(String bename);
     public List<Industry> getallinformation();
 	 public String getindusNamebyid(int id);
     public int deleteindus(int id);
     public Industry getone(int id);
     public List<Products> gotoAddindus();
     public int updateindus(int id,String industryName,String industryAddress,String industryPrincipal,String industryTel,String industryEmail);
     public int addindus(String industryName,String industryAddress,String industryPrincipal,String industryTel,String industryEmail);
     public List<Orders> orderlist(int start);
     public int getOrdercount(String datetime,String indusname,Long orderId);
     public int getOrdercountByindusid(String datetime,int indusid,String uname,int orderstate);
     //public Orders getorder(int orderid);
     public Orders getorder(Long orderid);
     //public int updCDRstateAndinCdrpath(String path,int orderid);
     public int updCDRstateAndinCdrpath(String path,Long orderid);
     public List<Orders> getorderByday(String day,String indusname,Long orderId,int start);
     public List<Orders> getindusorderByday(String day,int start,int indusid,String uname,int orderstate);
     public String getconmentcontentbyid(int id);
     public int deletecomment(int commentid);
     public String getproductNamebyid(int proid);
     public int updatecommentIdInreport(int reportid);
     //public String getcustomPicbycustomid(int customid);
     
     //public int updateOrderstate(int orderid);
     public int updateOrderstate(Long orderid,String orderNumber);
    // public int updateStockout(int orderid, String liyou);
     public int updateStockout(Long orderid, String liyou);
     public List getCostnameandCostmoney(int backpicid);
 	 public List<String> proName(int indusid);
 	 public List<String> moren(int indusid);
 	 public int insertinconpro(int indusid,int proid);
 	 public int getindusIdbyName(String name);
 	 public int deleteproidByindusid(int indusid);
 	 public int updatexuanzhong(int indusid,String proname);
     public int updateExceptxuanzhong(int indus,String proname);
    // public int updateFeedbackreson(int orderid, String reason);
     public int updateFeedbackreson(Long orderid, String reason);
     public int insertcost(Ordercost orcost);
    // public String getCdrurlByorderid(int orderid); 
     public String getCdrurlByorderid(Long orderid); 
    // public List<Orders> orderlist(int orerid,String ordername,int indusid,String time1,String time2,int start);
     public List<Orders> orderlist(Long orerid,String ordername,int indusid,String time1,String time2,int start);
     public List<Ordercost> ordercost();
    // public Ordercost getoneordercost(int orderid);
     public Ordercost getoneordercost(Long orderid);
     /*public List<Orders> allindusorderlist(int orderid,String ordername,int indusid,String time1,
				String time2,int start); */
     public List<Orders> allindusorderlist(Long orderid,String ordername,int indusid,String time1,
				String time2,int start);
    // public int getoneOrdercostCount(int orerid,String ordername,int indusid,String time1,String time2);
     public int getoneOrdercostCount(Long orerid,String ordername,int indusid,String time1,String time2);
     //public int allOrdercostCount(int orderid,String ordername,int indusid,String time1,String time2);
     public int allOrdercostCount(Long orderid,String ordername,int indusid,String time1,String time2);
     //public String get9dingid(int orderid);
     public String get9dingid(Long orderid);
     public String chaifendingid(String dingid);
     public List<Brands> getAllBrands();
     public int insertNewCarseries(Carseries car);
     public int insertNewCarTypes(Cartypes cartype);
     public int getCarseriesIdBySeriesName(String newCarName);
     public List<Carseries> getAllCarSeriesByBrandId(int brandId);
     public List<Cartypes> getAllCarTypesBySeriesId(int seriesId);
     public int deleteCarTypesBycartypeid(int cartypeid);
	public int checkUserNamePwd(Map<String, String> map);
	public int updatePwdByUserName(Map<String, String> map);
	public int chackTheNewCarName(String newCarName);
	public int insertNewBrand(String brandName);
	public int checkBrandName(String brandName);
	public int checkCartypeHaveSeriesId(int seriesId);
	public int deleteCarSeriesBySeriesId(int seriesId);
	public int deleteCarTypesBySeriesId(int seriesId);
	public int deleteCarBrandByBrandId(int brandId);
	public int checkProductName(String productName);
	public int insertNewProduct(Map<String, Object> m);
	public List<Products> getAllProducts();
	public int chackThelabelName(String labelName);
	public int insertNewLabel(String labelName);
	public int getLabelIdByLabelName(String labelName);
	public int createNewProductconLabel(Map<String, Integer> m);
	public int getProLabIdByPidAndLid(Map<String, Integer> m);
	public int newBackPic(Map b);
	public List<Label> getLabelIdByProductId(int productId);
	public double getPriceByProLabId(int prolabid);
	public int getProLabIdByLabelId(int lid);
	public int deleteLabelByLid(int lid);
	public List<BgPic> getBgPicByProLabId(Integer prolabid);
	public int deleteBgPicByProLabId(Integer prolabid);
	public void deleteProductLabelByLabelId(int lid);
	public void deleteProductByProductId(int productId);
	public int checkProLabByProductId(int productId);
	public List<BgPic> getBgPicByProductId(int productId);
	public int deleteLabelPicByPicUrl(String picUrl);
	public void deleteIndustProductByPid(int productId);
	public void updateExceptxuanzhong(int id);
	public int checkLabelName(String labelName);
	public List<Customs> getAllNotReviewCustoms();
	public int updateCustomReviewByCustomId(long customid);
	public List<Customs> getAllReviewCustoms();
	public int updateCustomShareByCustomId(long customid);
	public int checkBrandSeries(String newCarName, int brandId);
	public int insertNewAdvertisment(Map<String, Object> m);
	public List<Advertisement> getAllAdvertisment();
	public void clearAllTheAdvertismentShow();
	public void setTheAdvIsShowById(int id, String address);
	public int deleteAdvertismentById(int imageId);
	public List<Product> getAllProduct();
	public void changePosition(String jsonString, int id);
	public String getCustomerMailByUid(int id);
	public Designers getDesignersByMail(String mail);
	public List<Label> getAllLabelAndIsReviewzero();
	public Customer getCustomerByUsername(String username);
	public int updateLabelReview(int labelId, int isReview);
	public List<Products> getIndusPros(int id);
	public int getOrdercount(String startTime, String endTime,
			String indusname, Long orderId);
	public List<Orders> getorderByday(String startTime, String endTime,
			String indusname, Long orderId, int start);
	public void updateOtherCustomReiew();
	public int getOrdercount(Map<String, Object> m);
	public List<Orders> getorderByday(Map<String, Object> m);
	public List<Labelcost> getLabelCost();
	public void addCostLabel(String name);
	public void deleteLabelCostById(int id);
	public LabelInfo getLabelById(int labelId);
	public List<Labelcost> getLabelCostByLabelId(int labelId);
	public void deleteLabelconlabelcostByLabelId(int labelId);
	public void insertLabelconlabelcostByMap(Map<String, Object> m);
	public int getLabelIdByPicId(Integer picId);
	public int insertNewLabel(Map<String, Object> labelMap);
	public int getLabelIdByAlias(String alias);
	public Products getProductById(int productId);
	public List<LabelProduct> getLabelByProductId(int productId);
	public int updateProductByMap(Map<String, Object> m);
	public int updateLabelByMap(Map<String, Object> m);
	public List<String> getPicUrlsByProductId(int pid);
	public List<Orders> getOrdersByTradeId(Long tradeId);
	public List<Orders> getOrdersByTradeId2(Long tradeId);
	public int updateProductionState(Map<String, Object> m);
	public int getLableIdByMap(Map<String, Object> map);
	public int getOrderCountByMap(Map<String, Object> m);
	public List<Orders> getOrdersByMap(Map<String, Object> m);
	public Integer checkProductionState(String orderId);
	
	public Integer syncOrders(List<Orders> oList);
	public PrintInfo getPrintInfo(String companyCode);
	public List<String> getAllSellername();
	public boolean checkCartypeByName(String swfuploadFileName);
	public List<OrderStatistics> getOrderStatistics(Map<String, Object> m);
	public List<RefundOrder> getRefundOrder(Map<String, Object> map);
	public void updateOrderByMap(Map<String, Object> m);



     


}
